angular.module('goods').service('goodsService', function ($http) {
    var urlPrefix = ctx + 'goods';
    return {
        goodsList: function (param) {
            return $http.post(urlPrefix + '/list', param);
        },
        goodsDetail: function (id) {
            return $http.get(urlPrefix + '/detail?id=' + id);
        }
    };
});